.list-item {
  margin-bottom: 5px;
  padding: 8px 2px;
  font-size: 14px;

  &.list-item--deleted {
    background: var(--background-light);
    border: 1px dashed var(--background-light-highlight);
    padding: 6px 10px;
    pointer-events: none;

    .list-item-infos-date {
      font-size: 11px;
    }
  }

  &.list-item--deleting {
    .list-item-actions {
      pointer-events: all;
      opacity: 1;
    }
  }

  &.list-item--master {
    padding: 10px 2px;
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: bold;
  }

  &:focus,
  &:hover {
    .list-item-actions {
      pointer-events: all;
      opacity: 1;
    }

    .list-item-header-edit {
      opacity: 1;
      transform: translateX(-26px);
    }
  }
}

.list-item-header {
  position: relative;
}

.list-item-header-edit {
  position: absolute;
  left: 0;
  top: 3px;
  padding-right: 12px;
  color: var(--color-grey);
  opacity: 0.8;
  transform: translateX(-24px);
  transition: 0.2s ease-in-out;
  transition-property: opacity, transform, color;

  &:focus,
  &:hover {
    color: var(--color-primary);
  }

  svg {
    width: 14px;
  }
}

.list-item-infos {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.list-item-infos-date {
  font-size: 12px;
  color: var(--color-grey);
}

.list-link {
  display: inline-flex;
  align-items: baseline;
  text-decoration: none;
  color: var(--color-primary);

  &:focus,
  &:hover {
    text-decoration: underline;
  }
}

.list-link-small {
  margin-left: 5px;
  font-size: 11px;
  opacity: 0.8;
}

.list-item-actions {
  display: flex;
  opacity: 0.8;
  pointer-events: none;
  transition: 0.2s ease-in-out;
  transition-property: opacity;
}

.masterBadge {
  margin-left: 10px;
}

.promoteSlaveButton {
  padding: 2px 6px !important;
  margin-right: 10px !important;
}
